var express = require('express');
var db = require('../../../tools/database');
var router = express.Router();

// 获取商品信息
// 错误处理标准化 √√
router.use(function (req, res, next) {
    itemID = parseInt(req.query.itemID);
    sql = `SELECT * FROM Items WHERE ItemID=?`
    db.queryRespond(sql,[itemID], res, true)
});

module.exports = router;